<?php 
	$arrParam = $this->arrParam;
	
	$linkHome = $this->cmsUrl(array(
								'module' => 'default',
								'controller' => 'index',
								'action' => 'index'
								));
	
	$linkAboutUs = $this->cmsUrl(array(
								'module' => 'default',
								'controller' => 'index',
								'action' => 'about-us'
								), 'about-us');
								
	$linkContact = $this->cmsUrl(array(
								'module' => 'default',
								'controller' => 'index',
								'action' => 'contact'
								), 'contact');

	$arrMenu = array();
	$link = $this->cmsUrl(array(
								'module' => 'default',
								'controller' => 'index',
								'action' => 'index'
								));
	$active = ($arrParam['controller'] == 'index' && $arrParam['action'] == 'index')?' class="active"':'';
	$arrMenu[] = '<li><a' . $active . ' href="' . $link . '">TRANG CHỦ</a></li>';

	$link = $this->cmsUrl(array(
								'module' => 'default',
								'controller' => 'index',
								'action' => 'browse',
								'alias' => 'gioi-thieu'
								), 'browse');
	$active = ($arrParam['controller'] == 'index' && $arrParam['action'] == 'browse' && $arrParam['alias'] == 'gioi-thieu')?' class="active"':'';
	$arrMenu[] = '<li><a' . $active . ' href="' . $link . '">GIỚI THIỆU</a></li>';

	$link = $this->cmsUrl(array(
								'module' => 'default',
								'controller' => 'index',
								'action' => 'index',
								));
	$active = ($arrParam['controller'] == 'index' && $arrParam['action'] == 'product-all')?' class="active"':'';
	$arrMenu[] = '<li><a' . $active . ' href="' . $link . '">SẢN PHẨM</a></li>';

	$link = $this->cmsUrl(array(
								'module' => 'default',
								'controller' => 'index',
								'action' => 'browse',
								'alias' => 'thong-tin-giao-hang'
								), 'browse');
	$active = ($arrParam['controller'] == 'index' && $arrParam['action'] == 'browse' && $arrParam['alias'] == 'gthong-tin-giao-hang')?' class="active"':'';
	$arrMenu[] = '<li><a' . $active . ' href="' . $link . '">GIAO HÀNG</a></li>';

	$link = $this->cmsUrl(array(
								'module' => 'default',
								'controller' => 'index',
								'action' => 'contact',
								));
	$active = ($arrParam['controller'] == 'index' && $arrParam['action'] == 'contact')?' class="active"':'';
	$arrMenu[] = '<li><a' . $active . ' href="' . $link . '">LIÊN HỆ</a></li>';
?>
	<div id="main_nav">
        <ul>
        <!--
        	<li><a class="active" href="#">TRANG CHỦ</a></li>
            <li><a href="#">GIỚI THIỆU</a></li>
            <li><a href="#">SẢN PHẨM</a></li>
            <li><a href="#">TIN THỜI TRANG CỦA BÉ</a></li>
            <li><a href="#">GIAO HÀNG</a></li>
            <li><a href="#">LIÊN HỆ</a></li>
        -->
            <?php
            	foreach ($arrMenu as $value) {
            		echo $value;
            	}
            ?>
        </ul>
    </div>